home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / qbbs / ques_221.zip / SAMPLES.ZIP / DATABASE.ZIP / Q-NEW2.Q-A < prev    next >
Text File  |  1991-03-01  |  6KB  |  347 lines

  1. :top
  2. gotolabel main
  3.  
  4.  
  5. :Main
  6. Displayfile q-einlei
  7. :Frage
  8. display "If you want to fill in the questions, then please|"
  9. display "type 'YES'. Type 'NO' to abort the registration!  : "
  10. ask 4 1
  11.  
  12. if 1 = "yes"
  13. setvar 1 = ""
  14. gotolabel weiter
  15. endif
  16. if 1 = "no"
  17. gotolabel cancel
  18. endif
  19. gotolabel frage
  20. :
  21.  
  22.  
  23. :weiter
  24. let erroron = off
  25. display "Please wait..."
  26. checkdata dat-1 31
  27. if 31 = "1"
  28. loaddata dat-1 1
  29. loaddata dat-2 2
  30. loaddata dat-3 3
  31. loaddata dat-4 4
  32. loaddata dat-5 5
  33. loaddata dat-6 6
  34. loaddata dat-7 7
  35. loaddata dat-8 8
  36. loaddata dat-9 9
  37. loaddata dat-10 10
  38. loaddata dat-11 11
  39. loaddata dat-12 12
  40. endif
  41. let erroron = on
  42.  
  43.  
  44. display "||"
  45. if 31 = "1"
  46. gosublabel allready
  47. gotolabel ask
  48. endif
  49.  
  50.  
  51.  
  52. :101
  53. display "Your name...............................: "
  54. askedit 34 1
  55. if 1 = ""
  56. beep
  57. gotolabel 101
  58. endif
  59. :
  60.  
  61. :102
  62. display "Your adress.............................: "
  63. askedit 34 2
  64. if 2 = ""
  65. beep
  66. gotolabel 102
  67. endif
  68. :
  69.  
  70. :103
  71. display "Your code and city......................: "
  72. askedit 34 3
  73. if 3 = ""
  74. beep
  75. gotolabel 103
  76. endif
  77. :
  78.  
  79. :104
  80. display "Your data telephone number..............: "
  81. askedit 34 4
  82. if 4 = ""
  83. beep
  84. gotolabel 104
  85. endif
  86. :
  87.  
  88. :105
  89. display "Your age................................: "
  90. askedit 3 5
  91. :
  92.  
  93. :106
  94. display "Your computer type......................: "
  95. askedit 34 6
  96. :
  97.  
  98. :107
  99. display "Your modem type.........................: "
  100. askedit 34 7
  101. :
  102.  
  103. :108
  104. display "Your terminal program...................: "
  105. askedit 34 8
  106. :
  107.  
  108. :109
  109. display "How did you get our telephone number....: "
  110. askedit 34 9
  111. :
  112.  
  113. :110
  114. display "Are you a sysop yourself (Y/N)..........: "
  115. ask 1 10
  116. :
  117.  
  118. if 10 = "Y"
  119. :111
  120. display "Your nodenumber.........................: "
  121. askedit 34 11
  122. :
  123.  
  124. :112
  125. display "Your bbs telephone number...............: "
  126. askedit 34 12
  127. :
  128. endif
  129.  
  130. display "||"
  131.  
  132. :Ask
  133. Display "|Did you enter everything correctly (Y/N) ? "
  134. ask 1 30
  135. display "|"
  136. if 30 = "Y"
  137. gotolabel end
  138. endif
  139. if 30 = "N"
  140. gotolabel new
  141. endif
  142. ifnot 30 = "Y"
  143. beep
  144. beep
  145. display "||Wrong choise. Only 'Y' or 'N' are valid choises...|"
  146. gotolabel Ask
  147. endnotif
  148. :
  149.  
  150.  
  151. :end
  152. if 31 = "1"
  153. displayfile q-all
  154. endif
  155. if 31 = "0"
  156. Displayfile q-ende
  157. endif
  158. Ask 0 31
  159.  
  160. display "|Now saving your data, please wait"
  161. OutputAnswer ""
  162. PostInfo
  163. let erroron = off
  164. OutputAnswer "Name...............: " 1
  165. OutputAnswer "Adress.............: " 2
  166. OutputAnswer "Code / City........: " 3
  167. OutputAnswer "Telephone..........: " 4
  168. OutputAnswer "Age................: " 5
  169. OutputAnswer "Computertype.......: " 6
  170. OutputAnswer "Modemtype..........: " 7
  171. OutputAnswer "Terminalprogram....: " 8
  172. OutputAnswer "Got bbs from.......: " 9
  173. display "."
  174. writedata dat-1 1
  175. display "."
  176. writedata dat-2 2
  177. display "."
  178. writedata dat-3 3
  179. display "."
  180. writedata dat-4 4
  181. display "."
  182. writedata dat-5 5
  183. display "."
  184. writedata dat-6 6
  185. display "."
  186. writedata dat-7 7
  187. display "."
  188. writedata dat-8 8
  189. display "."
  190. writedata dat-9 9
  191. display "."
  192. writedata dat-10 10
  193.  
  194. if 10 = "Y"
  195. OutputAnswer "Sysop..............: " 10
  196. OutputAnswer "Node-Nr............: " 11
  197. OutputAnswer "Telephone BBS......: " 12
  198. OutputAnswer ""
  199. writedata dat-11 11
  200. writedata dat-12 12
  201. endif
  202. let erroron = on
  203. display "|"
  204. start q-new last
  205. :
  206.  
  207.  
  208. :new
  209. if 10 = "N"
  210. Display "Which line do you wish to change ( A-J ) ? "
  211. endif
  212. if 10 = "Y"
  213. Display "Which line do you wish to change ( A-L ) ? "             
  214. endif
  215.  
  216. ask 1 30
  217. display "|||"
  218.  
  219. if 30 = "a"
  220. gosublabel 101
  221. gosublabel allready
  222. gotolabel ask
  223. endif
  224.  
  225. if 30 = "b"
  226. gosublabel 102
  227. gosublabel allready
  228. gotolabel ask
  229. endif
  230.  
  231. if 30 = "c"
  232. gosublabel 103
  233. gosublabel allready
  234. gotolabel ask
  235. endif
  236.  
  237. if 30 = "d"
  238. gosublabel 104
  239. gosublabel allready
  240. gotolabel ask
  241. endif
  242.  
  243. if 30 = "e"
  244. gosublabel 105
  245. gosublabel allready
  246. gotolabel ask
  247. endif
  248.  
  249. if 30 = "f"
  250. gosublabel 106
  251. gosublabel allready
  252. gotolabel ask
  253. endif
  254.  
  255. if 30 = "g"
  256. gosublabel 107
  257. gosublabel allready
  258. gotolabel ask
  259. endif
  260.  
  261. if 30 = "h"
  262. gosublabel 108
  263. gosublabel allready
  264. gotolabel ask
  265. endif
  266.  
  267. if 30 = "i"
  268. gosublabel 109
  269. gosublabel allready
  270. gotolabel ask
  271. endif
  272.  
  273. if 30 = "j"
  274. gosublabel 110
  275. gosublabel allready
  276. gotolabel ask
  277. endif
  278.  
  279. if 30 = "k"
  280. gosublabel 111
  281. gosublabel allready
  282. gotolabel ask
  283. endif
  284.  
  285. if 30 = "l"
  286. gosublabel 112
  287. gosublabel allready
  288. gotolabel ask
  289. endif
  290.  
  291. ifnot 30 = "fake"
  292.  
  293. :FAKE
  294.  
  295. display "||"
  296. beep
  297. beep
  298. display "Wrong choise! Please try again...|"
  299. pause 2
  300. gotolabel new
  301. endnotif
  302. :
  303.  
  304.  
  305. :cancel
  306. clearscreen
  307. display "|||"
  308. display "New user registration aborted!|"
  309. display "|To bad you don't want to register yourself as|"
  310. display "a member... Well, maybe next time!|"
  311. display "|Press <ENTER> to return"
  312. ask 0 1
  313. start q-new abort
  314. :
  315.  
  316.  
  317.  
  318. :allready
  319. display "|||A. Your name............................: "
  320. listanswer 1
  321. display "B. Your adress..........................: "
  322. listanswer 2
  323. display "C. Your code and city...................: "
  324. listanswer 3
  325. display "D. Your data telephone number...........: "
  326. listanswer 4
  327. display "E. Your age.............................: "
  328. listanswer 5
  329. display "F. Your computer type...................: "
  330. listanswer 6
  331. display "G. Your modem type......................: "
  332. listanswer 7
  333. display "H. Your terminal program................: "
  334. listanswer 8
  335. display "I. How did you get our telephone number.: "
  336. listanswer 9
  337. display "J. Are you a sysop yourself (Y/N).......: "
  338. listanswer 10
  339.  
  340. if 10 = "Y"
  341. display "K. Your nodenumber......................: "
  342. listanswer 11
  343. display "L. Your bbs telephone number............: "
  344. listanswer 12
  345. endif
  346. :
  347.